home *** CD-ROM | disk | FTP | other *** search
- // vbitsvw.cpp : implementation of the CVbits16View class
- //
-
- #include "stdafx.h"
- #include "vbits16.h"
-
- #include "vbitsdoc.h"
- #include "vbitsvw.h"
- #include "newdialo.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View
-
- IMPLEMENT_DYNCREATE(CVbits16View, CEditView)
-
- BEGIN_MESSAGE_MAP(CVbits16View, CEditView)
- //{{AFX_MSG_MAP(CVbits16View)
- ON_COMMAND(ID_VIEW_NEWDIALOG, OnViewNewdialog)
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View construction/destruction
-
- CVbits16View::CVbits16View()
- {
- // TODO: add construction code here
- }
-
- CVbits16View::~CVbits16View()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View drawing
-
- void CVbits16View::OnDraw(CDC* pDC)
- {
- CVbits16Doc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View printing
-
- BOOL CVbits16View::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default CEditView preparation
- return CEditView::OnPreparePrinting(pInfo);
- }
-
- void CVbits16View::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
- {
- // Default CEditView begin printing.
- CEditView::OnBeginPrinting(pDC, pInfo);
- }
-
- void CVbits16View::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
- {
- // Default CEditView end printing
- CEditView::OnEndPrinting(pDC, pInfo);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View diagnostics
-
- #ifdef _DEBUG
- void CVbits16View::AssertValid() const
- {
- CEditView::AssertValid();
- }
-
- void CVbits16View::Dump(CDumpContext& dc) const
- {
- CEditView::Dump(dc);
- }
-
- CVbits16Doc* CVbits16View::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVbits16Doc)));
- return (CVbits16Doc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CVbits16View message handlers
-
- void CVbits16View::OnViewNewdialog()
- {
- CNewDialog newDlg;
- newDlg.DoModal();
- }
-